home *** CD-ROM | disk | FTP | other *** search
- - - - - - - - - - -
- About Minimal App7
- - - - - - - - - - -
- "Minimal App7" (MA7) is an application whose only purpose in life is
- to run hAWK programs. There are two ways to run a hAWK program
- using MA7:
- • start MA7, then pick "hAWK'" from the menu
- • put a hAWK command line on the clipboard, and then start
- MA7: it will then run the corresponding hAWK program using
- the command line, with no setup dialog.
-
- MA7 must be beside the "Drag_on Modules" folder at the same level
- in order to run hAWK programs.
-
- If MA7 runs a hAWK command line, it will quietly quit when
- the program is done. If you run the program by using the hAWK
- setup dialog, you will hear a beep when it is done.
-
- To terminate a running hAWK program, either type
- <command><period> or quit MA7 (that includes sending MA7
- a "quit" event with an AppleScript). MA7 does not have a
- key command for Quit, since quitting terminates any
- running hAWK program.
-
- You can use an AppleScript to start MA7, and if there is a
- hAWK command line on the system clipboard it will be run.
- An entire script to get things going would look like
- ____
- tell application "Disk:and:folders:Minimal App7"
- run
- end tell
- set result to "whatever you want or nothing"
- ____
- A version of this script, for use with EnterAct, is included
- in the (EnterAct Scripts) folder. It's called "Clip->Minimal App 7".
- Before you try it, open the script with Script Editor and change
- the path to Minimal App7 (I put a full path in so the script
- wouldn't pester me about locating Minimal App7).
-
- hAWK is a Mac implementation of AWK.
- A hAWK command line looks like this at its simplest:
- hAWK -f$ProgramName
- If you'd like to know more about hAWK, see appendices 1 and 2
- in the "EnterAct 3 Manual", and then browse your way into the
- "hAWK User’s Manual".
-
- MA7 supports getclip() and putclip(), but putclip() has an effect
- only if MA7 is the front application at the time of the call.
-
- You might use MA7 to run a lengthy hAWK program WAY in the
- background. Or (this notion is untested) use it as a CGI
- application: you would put a hAWK command line on the
- (system) clipboard using ZeroScrap()/PutScrap(), launch
- MA7, and then monitor things until the program is done.
- Monitoring could be done three ways:
- • detect when MA7 quits (through for example accepting
- "child died" events)
- • monitor a specific file for changes
- • have your hAWK program use putclip(string) to change
- the system clipboard: HOWEVER, your AppleScript would
- have to tell MA7 to activate (only an active application
- can change the system scrap, as a rule). Note that the
- script "Clip->Minimal App 7" just says run, not activate.
-
-
-